package cn.javass.dp.decorator.example6;

public class Client {

    public static void main(String[] args) {
        GoodsSaleEbi ebi = new LogDecorator(new CheckDecorator(new GoodsSaleEbo())

        );

        SaleModel saleModel = new SaleModel();
        saleModel.setGoos("手机");
        saleModel.setSaleNum(10);

        ebi.sale("张三", "小明", saleModel);
        ebi.sale("李四", "小明", saleModel);
    }
}
